{$header} 
{$menu}
{literal} 
<script language="javascript">
	function ToggleAllUsers(form, isChecked){
			for(i=0; i < form.length; i++) {
				if(form.elements[i].type == "checkbox"){
					if(isChecked){	form.elements[i].checked = true;}
					else { form.elements[i].checked = false;}					
				}
			}
		}
</script> 
{/literal}
<div id="content">
  <div id="tab" class="radius-top"> <span>Listing ({$total})</span>Local Movie Category
    <div class="clear"></div>
  </div>
  {$form_open}
  <div id="bnt-under">
    <ul id="icon">
      <li class="icon-delete left27">
        <input class="mws-button green" type="submit" value="Delete" onclick="return confirm('Are you sure delete category');" />
      </li>
      <li class="icon-add left27">
        <input class="mws-button green" type="button" value="Add" onclick="window.location='{$url}manage_movie/movie_cat_add';">
      </li>
    </ul>
  </div>
  {$status}
  <table>
    <thead>
      <tr>
        <th><input type="checkbox" onclick="ToggleAllUsers(this.form, this.checked)" /></th>
        <th>Category</th>
        <th>Edit</th>
        <th>Delete</th>
      </tr>
    </thead>
    <tbody>
    
    {if $Num_Rows != 0}
    {section name=index loop=$cat}
    <tr>
      <td><input type="checkbox" name="check[]" value="{$cat[index].pkid}" /></td>
      <td class="hotelInfo">{$cat[index].name_en}</td>
      <td><a href="{$url}manage_attrac/attraction_edit/{$cat[index].pkid}"><img src="{$url}images/edit-icon.png" width="20" height="20" /></a></td>
      <td><a href="{$url}manage_attrac/attraction_del/{$cat[index].pkid}" onclick="return confirm('Are you sure delete category');"><img src="{$url}images/delete-icon.png" width="20" height="20" /></a></td>
    </tr>
    {/section}
    <tr>
      <td colspan="4">{$pagelink}</td>
    </tr>
    { else }
    <tr>
      <td colspan="4" align="center">Empty</td>
    </tr>
    { /if }
      </tbody>
    
  </table>
  {$form_close} </div>
{$footer}